import request from '@/utils/request'

// 查询列表
export function listWithPage(query) {
  return request({
    url: '/system/huoPinPinLei/page',
    method: 'get',
    params: query
  })
}

// 查询列表
export function listAll(cangkuId) {
  return request({
    url: '/system/huoPinPinLei/listAll',
    method: 'get',
    params: {cangkuId}
  })
}

// 查询详细
export function getDetail(id) {
  return request({
    url: '/system/huoPinPinLei/' + id,
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: '/system/huoPinPinLei',
    method: 'post',
    data: data
  })
}

// 修改用户
export function update(data) {
  return request({
    url: '/system/huoPinPinLei',
    method: 'put',
    data: data
  })
}

// 删除用户
export function del(id) {
  return request({
    url: '/system/huoPinPinLei/' + id,
    method: 'delete'
  })
}

